package com.softa.common.sysconfig.support;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 *
 * @author yangl
 * @date 2017/8/6
 */
@Data
@ApiModel
public class LoginRequest {

    /** 用户名*/
    @ApiModelProperty(name="userName", value = "用户名", example="zhangsan")
    @NotEmpty(message = "不能为空")
    private String userName;

    /** 密码 */
    @ApiModelProperty(name="password",value = "密码", example="123456")
    @NotEmpty(message = "不能为空")
    private String password;

    /** 验证码 */
    @ApiModelProperty(name="code",value = "验证码")
    private String code;

    /**
     *  登录授权来源
     *     COOKIE("0", "cookie"),
     *     HTML5("1", "html5"),
     *     IOS("2", "apple ios"),
     *     ANDROID("3", "google android");
     */
    @ApiModelProperty(name="loginType",value = "登录来源(0:cookie，1:HTML5，2:IOS，3:ANDROID)", notes="0123",example="0")
    @NotEmpty(message = "不能为空")
    private Integer loginType;

}
